/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package luft27.comm;

/**
 *
 * @author amalikov
 */
public class NullStream implements SerialStream {

	@Override
	public void close() {
	}

	@Override
	public int read(byte[] data, int ofs, int len) {
		try {
			Thread.sleep(1);
		} catch (InterruptedException ex) {}
		return 0;
	}

	@Override
	public int read() {
		try {
			Thread.sleep(1);
		} catch (InterruptedException ex) {}
		return -1;
	}

	@Override
	public void write(byte[] data, int ofs, int len) {
	}

	@Override
	public void clean() {
	}
	
}
